<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Userslogs extends Model
{
    protected $table = 'users_logs';
    protected $primaryKey = 'id';

    public static function addUsersLogs($users_id,$title,$describe,$orders_id)
    {
        return self::insert([
            'users_id'   => $users_id,
            'title'      => $title,
            'describe'   => $describe,
            'orders_id'  => $orders_id,
            'created_at' => time(),
        ]);
    }
}
